#ifndef _LXP_FEATURE_H_
#define _LXP_FEATURE_H_

#include <string>
#include <fstream>
#include <map>
#include <set>
#include "spliter.h"

class feature {
	public:
		feature();
		feature(ISpliter *p);
		feature(std::string dectfile, ISpliter *p);
		~feature();

		void getFeatureOf(std::string target_file);
		void updateDict(std::string word, std::string target_file);
		void writeToDictfile();
		int getFileCount();
	private:
		std::string dictfile;
		std::map<std::string, std::set<std::string> > dict;
		ISpliter *spliter;
		int file_count;
};

#endif
